<%@ Control Language="C#" AutoEventWireup="true" CodeFile="AdvLeft.ascx.cs" Inherits="Controls_AdvLeft" %>
<table class="infoBox_table" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody><tr>
    <td class="infoBox_td">
    <table class="infoBoxContents_table" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tbody>
  <tr>
  <td style="height :10px">
  </td>
  </tr>
  <tr >  
    <td class="boxText"  align="center">
       <marquee direction="down">
            <asp:DataList ID="DataList1" runat="server" DataSourceID="ObjectDataSource1">
                <ItemStyle HorizontalAlign="Center" />
                <ItemTemplate> 
               <%--onmouseover="this.stop()" onmouseout="this.start()"--%>
                    <img src="images/Adv/<%# Eval("Adv_Image") %>"
                    alt=""width="200" height="140" border="0" onclick="A('http://<%# Eval("Adv_Link") %>')"/>
                    <br />
                    <hr />
                </ItemTemplate>
            </asp:DataList>
     </marquee> 
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="Get_AdvertiseAsPaging"
            TypeName="FShop.BAL.Advertise_BAL">
            <SelectParameters>
              <asp:Parameter DefaultValue="1" Name="pageIndex" Type="Int32" />
                <asp:Parameter DefaultValue="2" Name="pageSize" Type="Int32" />
                <asp:Parameter  Name="sSortColumn" Type="String" />
                <asp:Parameter DefaultValue="*" Name="sFields" Type="String" />
                <asp:Parameter DefaultValue="Adv_Position=1" Name="sWhere" Type="String" />
                <asp:Parameter DefaultValue="" Name="sGroupBy" Type="String" />
            </SelectParameters>
            </asp:ObjectDataSource>
    
	</td>
  </tr>
</tbody></table>
</td>
  </tr>
</tbody>
</table>
<script type="text/javascript">
function A(link)
{
    window.open(link,"openAdv","status=1");
}
</script>
